package com.gthncz;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.gthncz.beans.HelloWorld;

public class MainApp {
	
	public static void main(String[]  args) {
		@SuppressWarnings("resource")
		ApplicationContext context = new ClassPathXmlApplicationContext("Beans.xml");
		HelloWorld helloWold = (HelloWorld) context.getBean("helloWorld");
		String msg = helloWold.getMsg();
		System.out.println("Get message : " + msg);
	}

}
